package com.gulimall.product.feign;

import com.common.to.SkuReduceTo;
import com.common.to.SpuBoundsTo;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Rookie-6688
 * @Description 优惠券服务调用
 * @Create 2021-03-25 14:52
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {
    /**
     * 保存积分数据
     * @param spuBoundsTo
     * @return
     */
    @RequestMapping("/coupon/spubounds/save")
    public R saveFeign(@RequestBody SpuBoundsTo spuBoundsTo);

    /**
     * 保存添加商品的优惠券数据
     * @param skuReduceTo
     * @return
     */
    @RequestMapping("/coupon/skufullreduction/saveSkuReduceTo")
    public R saveFeign(@RequestBody SkuReduceTo skuReduceTo);

}
